home *** CD-ROM | disk | FTP | other *** search
/ Champak 122 / Vol 122.iso / games / gem_stri.swf / scripts / __Packages / mx / remoting / NetServices.as < prev    next >
Encoding:
Text File  |  2011-01-06  |  7.1 KB  |  204 lines

  1. var ┬º\x01┬º = 616;
  2. while(true)
  3. {
  4.    if(eval("\x01") == 616)
  5.    {
  6.       set("\x01",eval("\x01") - 371);
  7.       ┬º┬ºpush(true);
  8.    }
  9.    else if(eval("\x01") == 656)
  10.    {
  11.       set("\x01",eval("\x01") + 212);
  12.       if(┬º┬ºpop())
  13.       {
  14.          set("\x01",eval("\x01") + 102);
  15.       }
  16.    }
  17.    else
  18.    {
  19.       if(eval("\x01") == 868)
  20.       {
  21.          set("\x01",eval("\x01") + 102);
  22.          break;
  23.       }
  24.       if(eval("\x01") == 324)
  25.       {
  26.          set("\x01",eval("\x01") + 332);
  27.          ┬º┬ºpush(true);
  28.       }
  29.       else if(eval("\x01") == 394)
  30.       {
  31.          set("\x01",eval("\x01") + 442);
  32.          if(┬º┬ºpop())
  33.          {
  34.             set("\x01",eval("\x01") - 139);
  35.          }
  36.       }
  37.       else
  38.       {
  39.          if(eval("\x01") == 836)
  40.          {
  41.             set("\x01",eval("\x01") - 139);
  42.             break;
  43.          }
  44.          if(eval("\x01") == 970)
  45.          {
  46.             set("\x01",eval("\x01") - 576);
  47.             ┬º┬ºpush(true);
  48.          }
  49.          else
  50.          {
  51.             if(eval("\x01") == 697)
  52.             {
  53.                set("\x01",eval("\x01") - 7);
  54.                if(!_global.mx)
  55.                {
  56.                   _global.mx = new Object();
  57.                }
  58.                ┬º┬ºpop();
  59.                if(!_global.mx.remoting)
  60.                {
  61.                   _global.mx.remoting = new Object();
  62.                }
  63.                ┬º┬ºpop();
  64.                if(!_global.mx.remoting.NetServices)
  65.                {
  66.                   var _loc2_ = null;
  67.                   mx.remoting.NetServices.prototype = _loc2_ = new Object();
  68.                   mx.remoting.NetServices = function()
  69.                   {
  70.                      super();
  71.                   }.setDefaultGatewayUrl = function(url)
  72.                   {
  73.                      mx.remoting.NetServices.defaultGatewayUrl = url;
  74.                   };
  75.                   mx.remoting.NetServices = function()
  76.                   {
  77.                      super();
  78.                   }.setGatewayUrl = function(url)
  79.                   {
  80.                      mx.remoting.NetServices.gatewayUrl = url;
  81.                   };
  82.                   mx.remoting.NetServices = function()
  83.                   {
  84.                      super();
  85.                   }.createGatewayConnection = function(url, infoLogger)
  86.                   {
  87.                      var _loc1_ = url;
  88.                      mx.remoting.NetServices.logger = infoLogger;
  89.                      if(_loc1_ == undefined)
  90.                      {
  91.                         _loc1_ = mx.remoting.NetServices.gatewayUrl;
  92.                         if(_loc1_ == undefined)
  93.                         {
  94.                            _loc1_ = mx.remoting.NetServices.defaultGatewayUrl;
  95.                         }
  96.                      }
  97.                      if(_loc1_ == undefined)
  98.                      {
  99.                         mx.remoting.NetServices.trace("NetServices","warning",4,"createGatewayConnection - gatewayUrl is undefined");
  100.                         mx.remoting.NetServices.logger.logInfo("NetServices: createGatewayConnection - gateway url <" + _loc1_ + "> is undefined",mx.services.Log.DEBUG);
  101.                         return null;
  102.                      }
  103.                      var _loc2_ = new mx.remoting.Connection();
  104.                      _loc2_.connect(_loc1_);
  105.                      mx.remoting.NetServices.__sharedConnections[_loc1_] = _loc2_;
  106.                      return _loc2_;
  107.                   };
  108.                   mx.remoting.NetServices = function()
  109.                   {
  110.                      super();
  111.                   }.getConnection = function(uri)
  112.                   {
  113.                      return mx.remoting.NetServices.__sharedConnections[uri];
  114.                   };
  115.                   mx.remoting.NetServices = function()
  116.                   {
  117.                      super();
  118.                   }.getHostUrl = function()
  119.                   {
  120.                      var _loc2_ = _root;
  121.                      if(!mx.remoting.NetServices.isHttpUrl(_loc2_._url))
  122.                      {
  123.                         mx.remoting.NetServices.trace("NetServices","warning",4,"createGatewayConnection - gatewayUrl is invalid");
  124.                         return null;
  125.                      }
  126.                      var _loc1_ = _loc2_._url.indexOf("/",8);
  127.                      if(_loc1_ < 0)
  128.                      {
  129.                         mx.remoting.NetServices.trace("NetServices","warning",4,"createGatewayConnection - gatewayUrl is invalid");
  130.                         return null;
  131.                      }
  132.                      return _loc2_._url.substring(0,_loc1_);
  133.                   };
  134.                   mx.remoting.NetServices = function()
  135.                   {
  136.                      super();
  137.                   }.isHttpUrl = function(url)
  138.                   {
  139.                      return url.indexOf("http://") == 0 || url.indexOf("https://") == 0;
  140.                   };
  141.                   mx.remoting.NetServices = function()
  142.                   {
  143.                      super();
  144.                   }.getHttpUrl = function(url)
  145.                   {
  146.                      var _loc1_ = url;
  147.                      if(!mx.remoting.NetServices.isHttpUrl(_loc1_))
  148.                      {
  149.                         _loc1_ = mx.remoting.NetServices.getHostUrl() + _loc1_;
  150.                      }
  151.                      return _loc1_;
  152.                   };
  153.                   mx.remoting.NetServices = function()
  154.                   {
  155.                      super();
  156.                   }.trace = function(who, severity, number, message)
  157.                   {
  158.                      mx.remoting.NetServices.traceNetServices(who,severity,number,message);
  159.                   };
  160.                   mx.remoting.NetServices = function()
  161.                   {
  162.                      super();
  163.                   }.version = "1.2.0.124";
  164.                   mx.remoting.NetServices = function()
  165.                   {
  166.                      super();
  167.                   }.gatewayUrl = _root.gatewayUrl;
  168.                   mx.remoting.NetServices = function()
  169.                   {
  170.                      super();
  171.                   }.__sharedConnections = new Array();
  172.                   ┬º┬ºpush(ASSetPropFlags(mx.remoting.NetServices.prototype,null,1));
  173.                }
  174.                ┬º┬ºpop();
  175.                break;
  176.             }
  177.             if(eval("\x01") == 719)
  178.             {
  179.                set("\x01",eval("\x01") - 395);
  180.                toggleHighQuality();
  181.                gatewayUrl.services(mx.remoting.NetServices = function()
  182.                {
  183.                   super();
  184.                }.isHttpUrl,┬º┬ºpop()[┬º┬ºpop()],┬º┬ºpop());
  185.                var _loc1_ = ┬º┬ºpop();
  186.                ┬º┬ºpop()[┬º┬ºpop()] = ┬º┬ºpop();
  187.                _loc1_.who = "traceNetServices";
  188.                version(mx.remoting.NetServices.prototype,null,1);
  189.                break;
  190.             }
  191.             if(eval("\x01") != 245)
  192.             {
  193.                break;
  194.             }
  195.             set("\x01",eval("\x01") + 474);
  196.             if(┬º┬ºpop())
  197.             {
  198.                set("\x01",eval("\x01") - 395);
  199.             }
  200.          }
  201.       }
  202.    }
  203. }
  204.